package com.example.customview;

import android.content.Context;

public class DisplayUtils {

    public static int dpToPx(Context context, float pxValue) {
        float scale = context.getResources().getDisplayMetrics().density;
        return (int)(pxValue * scale);
    }
}
